package com.situ.blog.service.impl;

import com.situ.blog.dao.IBlogDao;
import com.situ.blog.dao.impl.BlogDaoImpl;
import com.situ.blog.pojo.Blog;
import com.situ.blog.service.IBlogService;

import java.util.List;

public class BlogServiceImpl implements IBlogService {
    private IBlogDao blogDao = new BlogDaoImpl();

    @Override
    public List<Blog> selectAll() {
        return blogDao.selectAll();
    }

    @Override
    public Blog selectById(int id) {
        return blogDao.selectById(id);
    }
}
